#include "addurldialog.h"
#include "ui_addurldialog.h"

AddUrlDialog::AddUrlDialog(QWidget* parent) :
    QDialog(parent),
    ui(new Ui::AddUrlDialog)
{
    ui->setupUi(this);
}

AddUrlDialog::~AddUrlDialog()
{
    delete ui;
}

QString AddUrlDialog::url() const {
    return this->ui->editUrl->text();
}

void AddUrlDialog::setUrl(const QString& str) {
    this->ui->editUrl->setText(str);
}
